/*
 * Component: 右侧控制栏。默认情况下,黑色的皮肤.
 * 共有两套皮肤（黑色和亮黑色）
 */
//侧边栏的背景控制类
//这是一个可见的黑色的可以滚动的背景
.control-sidebar-bg {
  position: fixed;
  z-index: 1000;
  bottom: 0;
}

//转换
.control-sidebar-bg,
.control-sidebar {
  top: 0;
  right: -@control-sidebar-width - 55;
  width: @control-sidebar-width+55;
  .transition(right @transition-speed ease-in-out);
}

//侧边栏
.control-sidebar {
  position: absolute;
  padding-top: @navbar-height+10;
  z-index: 1010;
  @media (max-width: @screen-sm) {
    padding-top: @navbar-height + 60;
  }
  > .tab-content {
    padding: 10px 15px;
  }
  &.control-sidebar-open {
    &,
    + .control-sidebar-bg {
      right: 0;
    }
  }
}

.control-sidebar-open {
  .control-sidebar-bg,
  .control-sidebar {
    right: 0;
  }
  @media (min-width: @screen-sm) {
    .content-wrapper,
    .right-side,
    .main-footer {
      margin-right: @control-sidebar-width;
    }
  }
}

//控制栏选项卡
.nav-tabs.control-sidebar-tabs {
  > li {
    &:first-of-type > a {
      &,
      &:hover,
      &:focus {
        border-left-width: 0;
      }
    }
    > a {
      .border-radius(0);

      //Hover and active states
      &,
      &:hover {
        border-top: none;
        border-right: none;
        border-left: 1px solid transparent;
        border-bottom: 1px solid transparent;
      }
      .icon {
        font-size: 16px;
      }
    }
    //Active state
    &.active {
      > a {
        &,
        &:hover,
        &:focus,
        &:active {
          border-top: none;
          border-right: none;
          border-bottom: none;
        }
      }
    }
  }
  //Remove responsiveness on small screens
  @media (max-width: @screen-sm) {
    display: table;
    > li {
      display: table-cell;
    }
  }
}

//标题栏的内容
.control-sidebar-heading {
  font-weight: 400;
  font-size: 16px;
  padding: 10px 0;
  margin-bottom: 10px;
}

//小标题
.control-sidebar-subheading {
  display: block;
  font-weight: 400;
  font-size: 14px;
}

//控制栏菜单
.control-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0 -15px;
  > li > a {
    .clearfix();
    display: block;
    padding: 10px 15px;
    > .control-sidebar-subheading {
      margin-top: 0;
    }
  }
  .menu-icon {
    float: left;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
  }
  .menu-info {
    margin-left: 45px;
    margin-top: 3px;
    > .control-sidebar-subheading {
      margin: 0;
    }
    > p {
      margin: 0;
      font-size: 11px;
    }
  }
  .progress {
    margin: 0;
  }
}

